<?php /* Smarty version Smarty-3.1.12, created on 2013-01-12 17:47:56
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/top_navi.php" */ ?>
<?php /*%%SmartyHeaderCode:79584143350f193bc557314-31694501%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '450933690bcd183ba9be3a7534d488438a91548c' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/top_navi.php',
      1 => 1358008341,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '79584143350f193bc557314-31694501',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_50f193bc58ad76_69247907',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50f193bc58ad76_69247907')) {function content_50f193bc58ad76_69247907($_smarty_tpl) {?><<?php ?>?php 
	// wenn im Match, dann Topnavi ausblenden
	if($_SESSION['matchLock']){
		$hidden = "hidden";
		$show_disabled_topnavi = "";
	}
	else{
		$hidden = "";
		$show_disabled_topnavi = "hidden";
	}
?<?php ?>>

<form action="<<?php ?>?php echo $_SERVER['PHP_SELF']."?login"; ?<?php ?>>" method="post">
    <div class="navbar navbar-inverse navbar-fixed-top <<?php ?>?php echo $hidden;?<?php ?>>" id="topNavi">
        <div class="navbar-inner">
          <div class="container">
            <a class="brand" href=".">DotA2 League</a>
            <div class="nav-collapse collapse">
              <ul class="nav">
                <li><a href=".">Home</a></li>
                <li><a href="find_match.php">Find Match</a></li>
                <li><a href="help.php">FAQ</a></li>
              </ul>
              <p class="navbar-text pull-right">
                    <<?php ?>?php include("inc/templates/login_form.php");?<?php ?>>
              </p>
            </div><!--/.nav-collapse -->
          </div>
        </div>
      </div>
</form>

 <div class="navbar navbar-inverse navbar-fixed-top <<?php ?>?php echo $show_disabled_topnavi;?<?php ?>>">
        <div class="navbar-inner">
          <div class="container">
             <a class="brand">Project name</a>
            <div class="nav-collapse collapse">
             <!-- <ul class="nav">
                <li><a href=".">Home</a></li>
                <li class="active"><a href="find_match.php">Find Match</a></li>
                <li><a href="#contact">Contact</a></li>
              </ul>
              <p class="navbar-text pull-right">
                    <<?php ?>?php //include("inc/templates/login_form.php");?<?php ?>>
              </p>-->
            </div><!--/.nav-collapse -->
          </div>
        </div>
      </div>
      
<script type="text/javascript">
	// ACTIVE MENUPUNKT dynamisch generieren
	var home_path = "<<?php ?>?php echo HOME_PATH; ?<?php ?>>";
	var url = location.href;
	
	//Home_Parth abschneiden
	position = url.split(home_path);
	position = position[1];
	
	links = $("#topNavi ul[class='nav'] a");
	l(links);
	// alle delektieren
	$(links).closest("li").removeClass("active");
	
	$.each(links, function(index, value){
			l($(value).html());
			// Index.php gesondert behandelt
			if(position == "index.php" || position == ""){
				if($(value).html() == "Home"){
					$(value).closest("li").addClass("active");
				}	
			}
			else{
				if($(value).attr("href") == position){
					$(value).closest("li").addClass("active");
				}
			}
	});
	l(position);
	
</script><?php }} ?>